package com.zzy.furns.dao;

import com.zzy.furns.domain.Furn;
import com.zzy.furns.domain.Page;

import java.util.List;

public interface FurnDAO {
    List<Furn> queryFurns();

    Integer add(Furn furn);

    Integer deleteFurnById (Integer id);

    Furn queryFurnById(Integer id);

    Integer updateFurn(Furn furn);

    Integer getTotalRow();

    List<Furn> getPageItems(Integer begin,Integer pageSize);

    Integer getPageTotalCountByName(String name);
    List<Furn> getPageItemsByName(String name, Integer index, Integer pageSize);
}
